'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
    const { router, controller } = app;
    router.get('/article/list', controller.article.index.index);
    router.post('/article/add', controller.article.index.add);
    router.delete('/article/delete', controller.article.index.destroy);
    router.get('/article/show', controller.article.index.show);
    router.post('/article/edit', controller.article.index.edit);
};
